import request from '@/utils/request'

// 查询维保合同列表
export function listWbContract(query) {
  return request({
    url: '/wb/wbContract/list',
    method: 'get',
    params: query
  })
}

// 查询维保合同详细
export function getWbContract(id) {
  return request({
    url: '/wb/wbContract/' + id,
    method: 'get'
  })
}

// 新增维保合同
export function addWbContract(data) {
  return request({
    url: '/wb/wbContract',
    method: 'post',
    data: data
  })
}

// 修改维保合同
export function updateWbContract(data) {
  return request({
    url: '/wb/wbContract',
    method: 'put',
    data: data
  })
}

// 删除维保合同
export function delWbContract(id) {
  return request({
    url: '/wb/wbContract/' + id,
    method: 'delete'
  })
}
